import request from '@/utils/request.js'

export const getRepertoryList = data => {
  return request({
    method: 'post',
    url: 'api/Repertory/PagingWarehouse',
    data
  })
}

export const editRepertory = data => {
  return request({
    method: 'post',
    url: 'api/Repertory/WarehouseInfo',
    data
  })
}

export const addRepertory = data => {
  return request({
    method: 'post',
    url: 'api/Repertory/AddWarehouse',
    data
  })
}

export const getInventoryList = data => {
  return request({
    method: 'post',
    url: 'api/Repertory/PagingInventory',
    data
  })
}

export const instocks = data => {
  return request({
    method: 'post',
    url: 'api/Repertory/InStocks',
    data
  })
}

export const searchPro = data => {
  return request({
    method: 'post',
    url: 'api/Repertory/PagingInventory',
    data
  })
}

export const outPro = data => {
  return request({
    method: 'post',
    url: 'api/Repertory/OutStocks',
    data
  })
}
